namespace Digitalmes.Domain.Sys;

/// <summary>
/// 字典信息表
/// </summary>
[SugarTable("sys_code", "字典信息表")]
public class SysCode : EntityTenantBase
{
    /// <summary>
    /// 分类编号
    /// </summary>
    [SugarColumn(ColumnDescription = "分类编号")]
    public long TypeId { get; set; }

    /// <summary>
    /// 标记 1=默认  2=其他
    /// </summary>
    [SugarColumn(ColumnDescription = "标记")]
    public int Tag { get; set; } = 1;

    /// <summary>
    /// 字典值名称
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "字典值名称", Length = 32)]
    public string? Name { get; set; }

    /// <summary>
    /// 字典值阈值
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "字典值阈值", Length = 32)]
    public string? CodeValues { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    [SugarColumn(ColumnDescription = "排序")]
    public int Sort { get; set; } = 1;

    /// <summary>
    /// 状态
    /// </summary>
    [SugarColumn(ColumnDescription = "状态")]
    public bool Status { get; set; } = true;

    /// <summary>
    /// 是否删除
    /// </summary>
    [SugarColumn(ColumnDescription = "是否删除")]
    public bool IsDel { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnDescription = "备注", Length = 128)]
    public string? Summary { get; set; }
}
